$yellow: #fee44e;
$f-color: #43240c;
$grey: #877a73;
$red: #fa585a;
body {
    background-color: #f6f6f6;
}
// banner
.banner {
    height: 375px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    // 左边导航栏
    .aside {
        width: 220px;
        height: 370px;
        background-color: #fcf9e3;
        li{
            width: 220px;
            height: 41px;
            font-size: 14px;
            color: $f-color;
            text-align: center;
            line-height: 41px;
            cursor: pointer;
            a{
                color: $f-color;
            }
            .iconfont{
                color: $f-color;
            }
        }
    }
    // 五宫格
    .event {
        cursor: pointer;
        width: 970px;
        height: 370px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        .banner_top {
            height: 234px;
            display: flex;
            justify-content: space-between;
            // 轮播图
            .carousel {
                width: 660px;
                height: 234px;
                background-color: violet;
                .swiper-button-prev,
                .swiper-button-next {
                    color: $yellow;
                }
                img {
                    width: 660px;
                    height: 234px;
                }
            }
            .nine {
                width: 300px;
                height: 234px;
                margin-left: 15px;
                color: #ff5817;
                background-color: #fff4e4;
                position: relative;
                h3 {
                    font-size: 24px;
                    font-weight: bold;
                    margin-top: 30px;
                    margin-left: 20px;
                    margin-bottom: 20px;
                }
                .nine_tittle {
                    width: 159px;
                    height: 36px;
                    font-size: 18px;
                    line-height: 36px;
                    color: white;
                    padding-left: 10px;
                    background: url("")
                        no-repeat;
                }
                img {
                    width: 134px;
                    height: 134px;
                    position: absolute;
                    bottom: 0;
                    right: 20px;
                }
            }
        }
        .banner_buttom {
            height: 128px;
            margin-bottom: 5px;
            display: flex;
            justify-content: left;
            align-items: center;
            cursor: pointer;
            .clothes,
            .discount {
                width: 325px;
                height: 128px;
                margin-right: 10px;
                border-radius: 18px;
                background: linear-gradient(270deg, #fffffe, #fec07e);
                color: white;
                position: relative;
                h3 {
                    font-size: 22px;
                    font-weight: bold;
                    line-height: 26px;
                    margin-top: 25px;
                    margin-left: 35px;
                }
                p {
                    font-size: 18px;
                    margin-left: 35px;
                    line-height: 22px;
                }
                .go {
                    width: 47px;
                    height: 20px;
                    border-radius: 10px;
                    font-size: 14px;
                    text-align: center;
                    line-height: 20px;
                    background-color: white;
                    color: #fec07e;
                    margin-top: 15px;
                    margin-left: 35px;
                }
                img {
                    width: 125px;
                    height: 125px;
                    position: absolute;
                    bottom: 0;
                    right: 0;
                }
            }
            .clothes {
                background: linear-gradient(270deg, #ffd1dd, #fca6c0);
                .go {
                    color: #fca6c0;
                }
            }
            .code {
                width: 297px;
                height: 128px;
                margin-left: 5px;
                border-radius: 8px;
                font-size: 18px;
                line-height: 20px;
                color: white;
                background: linear-gradient(270deg, #e7f5ff, #afdcff);
                position: relative;
                p:first-child {
                    margin-top: 35px;
                    margin-left: 35px;
                }
                p:nth-child(2) {
                    margin-left: 35px;
                }
                img {
                    box-sizing: border-box;
                    width: 100px;
                    height: 100px;
                    border: 8px solid #afdcff;
                    border-radius: 18px;
                    position: absolute;
                    top: 14px;
                    right: 20px;
                }
            }
        }
        .shadow:hover {
            box-shadow: rgb(230, 230, 230) 5px 5px 6px;
            transition: all 0.3s;
        }
    }
}

// 中间的小标题
.index_tittle {
    height: 57px;
    display: flex;
    line-height: 57px;
    align-items: baseline;
    background-color: white;
    margin-top: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    h3 {
        font-size: 18px;
        color: $f-color;
        margin-left: 52px;
    }
    p {
        font-size: 14px;
        color: $grey;
        margin-left: 30px;
    }
}

// 首页内容
.index_content {
    // background-color: rgb(161, 177, 224);
    cursor: pointer;
    // flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    // justify-content: space-between;
    .product {
        display: flex;
        flex-direction: column;
        margin-right: 22px;
        margin-bottom: 20px;
        &:hover {
            box-shadow: rgb(211, 210, 210) 5px 5px 10px;
            transition: all 0.6s;
        }
        img {
            width: 276px;
            height: 276px;
            background-color: rgb(245, 255, 225);
        }
        .details {
            box-sizing: border-box;
            width: 276px;
            height: 123px;
            padding: 10px 17px 17px;
            background-color: white;
            font-size: 14px;
            color: $grey;

            .pr_desc {
                width: 230px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                color: $grey;
            }
            .pr_plat {
                margin-top: 16px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                .operator {
                    width: 40px;
                    height: 20px;
                    color: white;
                    line-height: 20px;
                    text-align: center;
                    border-radius: 2px;
                    background-color: #f40;
                }
            }
            .pr_discount {
                margin-top: 14px;
                display: flex;
                justify-content: space-between;
                align-items: baseline;
                .price {
                    color: $red;
                    font-size: 12px;
                    .point {
                        font-size: 18px;
                        .int {
                            font-size: 28px;
                        }
                    }
                }
                .ticket {
                    width: 50px;
                    height: 20px;
                    text-align: center;
                    line-height: 20px;
                    color: $red;
                    font-size: 12px;
                    border: $red 1px solid;
                    border-radius: 2px;
                }
                .buy {
                    color: $grey;
                }
            }
        }
    }
    .product:nth-child(4n){
        margin-left: 0px;
    }
}



// 返回顶部
.toTop {
    width: 60px;
    height: 60px;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 10px;
    margin: auto 0;
    display: none;
}
